package com.strato.logging.v1_0_0.log4j;

import org.apache.log4j.Logger;

import com.strato.logging.v1_0_0.api.Log;
import com.strato.logging.v1_0_0.api.LogFactory;

public class Log4jLogFactory implements LogFactory {

	private static Log4jLogFactory instance=new Log4jLogFactory();
	
	public static Log4jLogFactory getInstance(){
		return instance;
	}
	
	@Override
	public Log getLogByName(String name) {
		Logger log4jlog = Logger.getLogger(name);
		return new Log4jLog(log4jlog);
	}

}
